<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Book List</title>
</head>
<body style="text-align: center; margin: 0 auto;">
	<h1>Book List</h1>
<h2>	用户${sessionScope.user.username}</h2>
	<table style="text-align: center; margin: 0 auto;">
		<thead>
			<tr>
				<td>bookname</td>
				<td>image</td>
				<td>add</td>
			</tr>
		<tbody>
			<c:forEach items="${booklist}" var="b">
				<tr>
					<td>${b.bookname}</td>
					<td><img width=40px height=40px src="<c:url value="${b.path}"/>" /></td>
					<td><a href="addToCart?id=${b.id}"/>add  </td>
				</tr>
			</c:forEach>
		</tbody>
		</thead>
	</table>
<a href="gocart">My Cart</a>
</body>
</html>